-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: groupby apply on selected columns yielding scalar (GH13568) #13585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: groupby apply on selected columns yielding scalar (GH13568) #13585
Conversation
@jreback Can you remember the reason that you added the |
The nested groupy-aplly (e.g. So the path that you are changing is all scalars, so this seems ok. If nothing breaks then you are good to go!. though the path in the OP is really related to In any event I would add a nice comment about why we are not passing name here. |
Current coverage is 84.33%@@ master #13585 diff @@
==========================================
Files 138 138
Lines 51100 51100
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 43097 43097
Misses 8003 8003
Partials 0 0
|
Indeed, that was my thought as well
The problem is that I am not familiar enough to know all use / corner cases of Added a comment |
Actually, if I just let |
lgtm |
@@ -478,6 +478,7 @@ Bug Fixes | |||
- Bug in ``PeriodIndex`` construction returning a ``float64`` index in some circumstances (:issue:`13067`) | |||
- Bug in ``.resample(..)`` with a ``PeriodIndex`` not changing its ``freq`` appropriately when empty (:issue:`13067`) | |||
- Bug in ``.resample(..)`` with a ``PeriodIndex`` not retaining its type or name with an empty ``DataFrame`` appropriately when empty (:issue:`13212`) | |||
- Bug in ``groupby(..).apply(..)`` when the passed function returns scalar values per group (:issue:`13468`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
though need to rebase and move this
a9151d1
to
c463e1f
Compare
git diff upstream/master | flake8 --diff